package com.example.synccenter.dingtalk;

import com.example.synccenter.identitysource.core.IdentitySourceConfig;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.HashMap;
import java.util.Map;

/**
 * 钉钉身份源配置
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class DingTalkConfig extends IdentitySourceConfig {
    
    @JsonProperty("url")
    private String url;

    public DingTalkConfig() {
        super("DINGTALK");
    }

    @Override
    public Map<String, String> getProperties() {
        Map<String, String> props = new HashMap<>();
        props.put("url", url);
        return props;
    }
} 